//用户模块

export default {
    namespaced:true,

    state(){
        return{
            //用户信息
            profile:{
                id:'',
                avatar:'',
                nickname:'',
                account:'',
                mobile:'',
                token:'',
            },
            // 登录后回跳路径
            redirectUrl: '/'
        }
    },
    mutations:{
        //修改数据的方法
        setUser(state,payload){
            state.profile=payload
        },
        setRedirectUrl (state, url) {
            state.redirectUrl = url
        }
    }
}